/*!
    \file  main.c 
    \brief this file realizes the MSC host
    
    \version 2018-03-26, V1.0.0, demo for GD32E10x
*/

#include "os_obj.h" 
#include "bsp.h" 

/*****************************************************************************//*!
*
* @brief   main routine.
*     
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/
int main(void)
{
	bsp_Init();
	
    osKernelInitialize(); // Initialize CMSIS-RTOS

    thread_init();
            
    if (osKernelGetState() == osKernelReady) 
    {
        osKernelStart(); // Start thread execution
    }
        
    osThreadYield();

     /*usb scan*/
    while (1) {
        NOP1();
        osDelay(100000);
        NOP1();
    }
}



void lib_os_lock(void)
{}
	
void lib_os_unlock(void)
{}

void lib_check_hook(int st)
{

}

